﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using uam_fps_game.Gfx;
using Microsoft.Xna.Framework;

namespace uam_fps_game.Scenes
{
    class GraphicsNode : SceneNode
    {
        internal List<VisualObject> VisualObjects { get; set; }

        internal GraphicsNode(Scene scene)
            : base(scene)
        {
            VisualObjects = new List<VisualObject>();
        }

        protected override void Update(float deltaTime, Matrix parentWorldMatrix)
        {
            base.Update(deltaTime, parentWorldMatrix);

            for (int i = 0; i < VisualObjects.Count; i++)
            {
                VisualObjects[i].WorldMatrix = WorldMatrix;
            }
        }
    }
}
